# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=musl-obstack
pkgver=1.1
pkgrel=1
pkgdesc="A standalone library to implement GNU libc's obstack"
url="https://github.com/pullmoll/musl-obstack"
arch="all"
license="GPL-2.0-or-later"
makedepends="automake autoconf libtool"
subpackages="$pkgname-dev"
source="musl-obstack-$pkgver.tar.gz::https://github.com/pullmoll/musl-obstack/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	./bootstrap.sh
}

build() {
	./configure --prefix=/usr
	make
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="e3a9956133d72a00663cf8d9720e62002142e113e7d67e2338a2bce1bdfac9eefd4290db8add15eabafdf01065f7fe9bb6754faa36b88df819c53d44fa140757  musl-obstack-1.1.tar.gz"
